package com.wei.myhame.ui.activity;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.wei.myhame.MainActivity;
import com.wei.myhame.R;
import com.wei.myhame.base.BaseActivity;
import com.wei.myhame.base.interfaces.IPresenter;

//预约报到的详情页面
public class CheckInParticularsActivity extends BaseActivity {
    TextView texttopname,textPage,textFilingTime;
    ImageView fyimg;
    RelativeLayout relativeBackMain,RelativeSSLA,RelativePTYY,RelativeYJFG;
    Button btnLeft,btnRight,buttonBack,buttonAffirm;
    TextView textCourtTime,textHoldACourtSite,textCaseNo;
    TextView textAppointmentTime,textJudgeName,textJudgeDepartment,textIncident;

    @Override
    protected int getLayout() {
        return R.layout.activity_check_in_particulars;
    }

    @Override
    protected IPresenter createPresenter() {
        return null;
    }

    @Override//接口的方法
    protected void initView() {

    }

    @Override//初始化数据的方法
    protected void initData() {
        fyimg=findViewById(R.id.fyimg);//法院图片
        texttopname=findViewById(R.id.texttopname);//法院顶部名
        relativeBackMain=findViewById(R.id.relativeBackMain);//返回首页
        btnLeft=findViewById(R.id.btnLeft);//按钮左
        btnRight=findViewById(R.id.btnRight);//按钮右
        buttonBack=findViewById(R.id.buttonBack);//按钮返回
        buttonAffirm=findViewById(R.id.buttonAffirm);//按钮一键确认
        textPage=findViewById(R.id.textPage);//页数
        RelativeSSLA=findViewById(R.id.RelativeSSLA);//诉讼立案框
        RelativePTYY=findViewById(R.id.RelativePTYY);//旁听预约框
        RelativeYJFG=findViewById(R.id.RelativeYJFG);//约见法官框
        textFilingTime=findViewById(R.id.textFilingTime);//诉讼立案--预约时间
        textCourtTime=findViewById(R.id.textCourtTime);//旁听预约--开庭时间
        textHoldACourtSite=findViewById(R.id.textHoldACourtSite);//旁听预约--开庭地点
        textCaseNo=findViewById(R.id.textCaseNo);//旁听预约--案号
        textAppointmentTime=findViewById(R.id.textAppointmentTime);//约见法官--约见时间
        textJudgeName=findViewById(R.id.textJudgeName);//约见法官--法官姓名
        textJudgeDepartment=findViewById(R.id.textJudgeDepartment);//约见法官--法官部门
        textIncident=findViewById(R.id.textIncident);//约见法官--来访事由

        //返回首页的点击事件
        relativeBackMain.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent = new Intent(CheckInParticularsActivity.this, MainActivity.class);
                startActivity(intent);
                finish();
            }
        });
        //返回按钮的点击事件
        buttonBack.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent = new Intent(CheckInParticularsActivity.this, CheckInActivity.class);
                startActivity(intent);
                finish();
            }
        });
    }
}
